package com.damai.pay;

import java.io.IOException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.citywithincity.pay.PayException;

public interface PayAdapter<BusinessOrder> extends PayHandler<BusinessOrder> {

	
	/**
	 * 支付平台后台通知
	 * @param request
	 * @param response
	 */
	void onServerNotify(HttpServletRequest request,HttpServletResponse response) ;
	
	/**
	 * 用于客户端通知
	 * @param order
	 * @return
	 * @throws PayException
	 * @throws IOException
	 */
	PayInfo getPayInfo(BusinessOrder order,Map<String, Object> json) throws PayException, IOException;

	
}
